package com.xiaomi.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

//商家信息表
public class Business implements Serializable {

    private int buid;//编号id
    private String bphone;//'商家手机号'
    private String password;//密码
    private String bname;//名称
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date reg_time;//注册时间

    public Date getReg_time() {
        return reg_time;
    }

    public void setReg_time(Date reg_time) {
        this.reg_time = reg_time;
    }

    public int getBuid() {
        return buid;
    }

    public void setBuid(int buid) {
        this.buid = buid;
    }

    public String getBphone() {
        return bphone;
    }

    public void setBphone(String bphone) {
        this.bphone = bphone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    @Override
    public String toString() {
        return "Business{" +
                "buid=" + buid +
                ", bphone='" + bphone + '\'' +
                ", password='" + password + '\'' +
                ", bname='" + bname + '\'' +
                '}';
    }
}
